#ifndef CARDCONTROLLERFORM_H
#define CARDCONTROLLERFORM_H

#include <QWidget>
#include <QTimer>

namespace Ui
{
    class CardControllerForm;
}

class CardControllerForm : public QWidget
{
    Q_OBJECT

    public:
        explicit CardControllerForm(QWidget *parent = 0);
        ~CardControllerForm();
        void display(QString message);

    signals:
        void ledOn();
        void ledOff();
        void actualized();
        void messageSent(QString message);
        void motorSlide(int angle);

    private slots:
        void on_ledButton_clicked();
        void on_actualizeButton_clicked();
        void on_sendButton_clicked();
        void on_actualizeRadioButton_clicked();
        void on_actualize();
        void on_sliderChange(int val);
        void on_sliderSet();
        void on_sliderClick(int val); //detection du clic sur la barre du slider

    private:
        Ui::CardControllerForm *ui;
        QTimer *actualizeTimer;
        bool on;
};

#endif // CARDCONTROLLERFORM_H
